package fr.vahren.sriksal.dao.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import fr.vahren.sriksal.dao.bean.MapDaoBean;

public class MapRowMapper implements RowMapper<MapDaoBean> {
	

	@Override
	public MapDaoBean mapRow(ResultSet rs, int index) throws SQLException {
		MapDaoBean bean = new MapDaoBean();
		bean.setMapId(rs.getLong("ID_MAP"));
		bean.setUserId(rs.getLong("ID_USER"));
		return bean;
	}

}
